import request from '@/utils/request'

export function checkMobileAvailable(mobile) {
  return request({
    url: '/auth/check_mobile',
    method: 'post',
    params: {
      mobile: mobile
    }
  })
}
//手机号密码登录
export function loginByMobilePassword(mobile, password) {
  return request({
    url: '/auth/phone_pwd',
    method: 'post',
    data: {
      identifier: mobile,
      credential: password
    }
  })
}

//获取用户信息
export function getUserInfo() {
  return request({
    url: '/user/profile',
    method: 'post',
  })
}


